
#include <apvp.pb.h>
#include "PlatformProperty.h"

TRANSMIT_WRITE_PROPERTY(IndcnUnit,proto::ipcp::IndcnUnit) {
    builder
        .area(VehicleArea::GLOBAL)
        .immutableStatus(PropertyStatus::Active)
        .onSetProperty([](const proto::ipcp::IndcnUnit& value) {

                ecarx::transfer::IndcnUnit structObj;
                structObj.indcnUnitClkFmt=(uint8_t)value.indcnunitclkfmt();
                structObj.indcnUnitDateFmt=(uint8_t)value.indcnunitdatefmt();
                structObj.indcnUnitDstLong=(uint8_t)value.indcnunitdstlong();
                structObj.indcnUnitDstSho=(uint8_t)value.indcnunitdstsho();
                structObj.indcnUnitFuCnsUnit=(uint8_t)value.indcnunitfucnsunit();
                structObj.indcnUnitIdPenForUnit=(uint8_t)value.indcnunitidpenforunit();
                structObj.indcnUnitPUnit=(uint8_t)value.indcnunitpunit();
                structObj.indcnUnitSpdUnit=(uint8_t)value.indcnunitspdunit();
                structObj.indcnUnitTUnit=(uint8_t)value.indcnunittunit();
                structObj.indcnUnitVolUnit=(uint8_t)value.indcnunitvolunit();       
                SIGNAL.setIndcnUnit(structObj);

        });
}
